package com.yuhq.helloworld.service;

import com.yuhq.helloworld.repositories.UserRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.transaction.Transactional;

@Service("userService")
public class UserService {

    @Resource
    private UserRepository userRepository;

    @Transactional
    public Integer modifyUser(Integer id, String userName) {
        return userRepository.modifyUser(id, userName);
    }


}
